package com.yunzhi.controller;


import com.yunzhi.entity.User;
import com.yunzhi.service.UserService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author :Mikey
 * @description :
 * @create :2022-06-24 18:42:00
 */
@RestController
public class UserController {
   @Reference
   private UserService userService;
    @GetMapping("/user")
    public List<User> findall(){
        return userService.findall();
    }
}
